/* 可以调整 */
* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

html {
    width: 100%;
    font-size: 10px;
}

body {
    overflow: auto;
    width: 100%;
    height: 100vh;
    background-color: rgb(0, 0, 0);
}

ul li {
    list-style: none;
}

a {
    text-decoration: none;
    color: #fff;
}

.wrap {
    position: relative;
    top: 280px;
    left: 50%;
    transform: translateX(-50%);
    width: 40rem;
    height: 50px;
}

.wrap .nav_box {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    box-shadow: 0px 0px 25px -10px rgb(196, 196, 196) inset;
    background-color: rgb(41, 41, 41);
}

.wrap .nav_box::before {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    content: "♔";
    font-size: 3rem;
    color: #fff;
    border-radius: 10px;
    text-shadow: 0px 0px 50px rgb(255, 255, 255);
    box-shadow: 0px 0px 16px -10px rgb(196, 196, 196) inset;
    background-color: black;
}

.wrap .nav_box .nav {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    width: 80%;
    height: 80%;
    border-radius: 10px;
    background-color: rgb(0, 0, 0);
}

.wrap .nav_box .nav li {
    position: relative;
    float: left;
    width: 25%;
    height: 100%;
}

.wrap .nav_box .nav li a .icon {
    position: absolute;
    z-index: -1;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    text-align: center;
    text-shadow: 0px 0px 0px rgb(255, 255, 255);
    color: rgb(61, 61, 61);
    opacity: 0;
    transition: top 1s ease 0s, font-size 1.5s ease 0s, opacity 1.5s ease 0s, color 1.5s ease 0s;
}

.wrap .nav_box .nav li:hover a .icon {
    top: -40px;
    font-size: 3.5rem;
    text-shadow: 0px 0px 10px rgb(255, 255, 255);
    color: rgb(255, 255, 255);
    opacity: 1;
    transition: top 1s ease 0s, font-size 2s1.5s ease 0s, opacity 1.5s ease 0s, color 1.5s ease 0s;
}

.wrap .nav_box .nav li a .content {
    width: 100%;
    height: 100%;
    font-size: 1.8rem;
    text-align: center;
    line-height: 36px;
    color: rgb(61, 61, 61);
}

.wrap .nav_box .nav li a .content:hover {
    transform-origin: center;
    animation: contentAni 1s ease 0s forwards;
}

@keyframes contentAni {
    0% {
        transform: rotate(0deg) scale(1, 1);
        color: rgb(90, 90, 90);
        text-shadow: 0px 0px 0px rgb(90, 90, 90);
    }

    10% {
        transform: rotate(-20deg) scale(1.2, 1.2);
        color: rgb(136, 136, 136);
        text-shadow: 0px 0px 10px rgb(136, 136, 136);
    }

    20% {
        transform: rotate(20deg) scale(1.4, 1.4);
        color: rgb(48, 48, 48);
        text-shadow: 0px 0px 0px rgb(48, 48, 48);
    }

    60% {
        transform: rotate(-20deg) scale(1.3, 1.3);
        color: rgb(202, 202, 202);
        text-shadow: 0px 0px 10px rgb(202, 202, 202);
    }

    100% {
        transform: rotate(0deg) scale(1, 1);
        color: rgb(255, 255, 255);
        text-shadow: 0px 0px 15px rgb(255, 255, 255);
    }
}